﻿namespace Grow.EventBus.Cap.PublisherHandler
{
    /// <summary>
    /// 消息发布处理器
    /// </summary>
    public interface IPublisherHandler
    {
        /// <summary>
        /// 执行发布操作
        /// </summary>
        /// <param name="publisherEventDataDto"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task ExecuteAsync(PublisherEventDataDto publisherEventDataDto, CancellationToken cancellationToken = default);
    }
}
